package com.xiaohai;

import com.xiaohai.singleton.DogTemplate;
import org.junit.Test;

import java.lang.reflect.Method;

public class SinglotenTest {
    public static void main(String[] args) {
        for (int i = 0; i <10000 ; i++) {
            new Thread(){
                public void run(){
                    DogTemplate.getDogTemplate();
                }
            } .start();
        }
        System.gc();
    }

    @Test
    public void test1() throws Exception{
        Class<?> aClass = Class.forName("com.xiaohai.impl.DaheMessage");
        Method[] methods = aClass.getDeclaredMethods();
        for (Method method : methods) {
            System.out.println(method.getName());
        }
    }
}
